<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class New_account extends MY_Controller{

	function __construct()
	{
		parent::__construct();
		$this->load->helper(array('form', 'url'));
		$this->load->library(array('form_validation', 'uri'));
		//$this->load->model("users_model", "model", TRUE);
	}

	function index(){
		switch($this->input->post('accType')){
			case '1' : {
			  $data['redirect'] = site_url('/user/create_account/step/1');
			  echo json_encode($data);
	  		  break;
			}
			case '2' : {
			  $data['redirect'] = site_url('/user/create_account_payment/');
			  echo json_encode($data);
		  	  break;
			}
			case '3' : {
			  $data['redirect'] = site_url('/user/create_account_ewallet/');
			  echo json_encode($data);
		  	  break;
			}
			default : {
			  $data['logged'] = $this->logged;
			  $data['submenus'] = $this->sub_menus;
			  $this->template->load("user/layout_register", "user/choose_account_view", $data);
			}
		}
	}
}